#include<stdio.h>
#define _CRT_SECURE_NO_WARNINGS
int main()
{
	int cnt[5] = {0};
	int x,i;
	scanf("%d", &x);
	while (x != -1) {
		cnt[x]++;
		scanf("%d", &x);
	}
	for (i = 0; i < 5; i++) {
		printf("%d ",cnt[i]);
	}
	return 0;
}
